package com.oracle.oa.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;



@Entity                        
@Table(name="loginlog ")
public class Loginlog  implements java.io.Serializable {

	 @GenericGenerator(name = "generator", strategy = "increment")
	 @Id
	 @GeneratedValue(generator = "generator")
	 @Column(name = "loginid", unique = true, nullable = false)
     private int loginid;
	 
	 @ManyToOne
 	 @JoinColumn(name = "userinfo_id")
     private Userinfo userinfo;
	 
	 @Column(name = "logintime", length = 64)
     private String logintime;
	 @Column(name = "ifsuccess")
     private int ifsuccess;
	 @Column(name = "loginuserip", length = 64)
     private String loginuserip;
	public int getLoginid() {
		return loginid;
	}
	public void setLoginid(int loginid) {
		this.loginid = loginid;
	}
	public Userinfo getUserinfo() {
		return userinfo;
	}
	public void setUserinfo(Userinfo userinfo) {
		this.userinfo = userinfo;
	}
	public String getLogintime() {
		return logintime;
	}
	public void setLogintime(String logintime) {
		this.logintime = logintime;
	}
	public int getIfsuccess() {
		return ifsuccess;
	}
	public void setIfsuccess(int ifsuccess) {
		this.ifsuccess = ifsuccess;
	}
	public String getLoginuserip() {
		return loginuserip;
	}
	public void setLoginuserip(String loginuserip) {
		this.loginuserip = loginuserip;
	}
	public Loginlog(int loginid, Userinfo userinfo, String logintime,
			int ifsuccess, String loginuserip) {
		this.loginid = loginid;
		this.userinfo = userinfo;
		this.logintime = logintime;
		this.ifsuccess = ifsuccess;
		this.loginuserip = loginuserip;
	}
	public Loginlog() {
		super();
	}


}